package cz.data.domain.metadata.rpc;

import cz.data.common.annotation.DataInner;
import cz.data.domain.metadata.model.entity.MetadataAuthorizeEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "metadataAuthorizeFeign", value = "metadata-domain-api")
public interface MetadataAuthorizeFeign {

    @DataInner
    @GetMapping("/inner/authorize/table/{role}")
    List<MetadataAuthorizeEntity> getMetadataAuthorizeByRoleId(@PathVariable("role") String role);
}
